import request from '@/utils/request'

// 查询石油支付列表
export function listPetroleumPayment(query) {
  return request({
    url: '/wuliu/petroleumPayment/list',
    method: 'get',
    params: query
  })
}

// 查询石油支付详细
export function getPetroleumPayment(id) {
  return request({
    url: '/wuliu/petroleumPayment/' + id,
    method: 'get'
  })
}

// 新增石油支付
export function addPetroleumPayment(data) {
  return request({
    url: '/wuliu/petroleumPayment',
    method: 'post',
    data: data
  })
}

// 修改石油支付
export function updatePetroleumPayment(data) {
  return request({
    url: '/wuliu/petroleumPayment',
    method: 'put',
    data: data
  })
}

// 删除石油支付
export function delPetroleumPayment(id) {
  return request({
    url: '/wuliu/petroleumPayment/' + id,
    method: 'delete'
  })
}
